import { request } from '@/utils/request'

// 获取短信验证码
export const getSms = (type, phone) => request('Connect/get_sms_captcha', { type, phone })

// 获取省市区
export const getAreaTree = () => request('Area/area_app')

// 短信验证身份
export const checkAuthCode = authCode => request('Memberaccount/check_auth_code', { auth_code: authCode })

// 注册协议
export const agreement = () => request('Document/agreement', { type: '' }, 'GET')

// 根据ID获取广告位
export const getAdById = id => request('Index/getIndexAdListById', { id })

// 验证手机
export const authCode = (type = 'mobile') => request('Memberaccount/send_auth_code', { type })
